package com.woniuxy.car.boss.client;

import com.woniuxy.car.common.resultcode.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;

@FeignClient(contextId = "orderBossClient",name="boss")
public interface OrderBossClient {

    /**
     * @Description //TODO 订单已发货
     * @author js
     * @date 2022/12/1 20:12
     * @param orderNum
     * @return
     **/
    @GetMapping("/setOrderShipped")
    public Result setOrderShipped(@RequestParam("orderNum") @NotBlank String orderNum
            , @RequestParam("shipNum") @NotBlank String shipNum);


    /**
     * @Description //TODO 订单用户签收
     * @author js
     * @date 2022/12/1 20:25
     * @param orderNum
     * @return  Result
     **/
    @GetMapping("/setOrderSign")
    public Result setOrderSign(@RequestParam("orderNum") @NotBlank String orderNum);

    /**
     * @Description //TODO 商品订单已完成
     * @author js
     * @date 2022/12/1 20:35
     * @param orderNum
     * @return  Result
     **/
    @GetMapping("setOrderFinished")
    public Result setOrderFinished(@RequestParam("orderNum") @NotBlank String orderNum
            ,@RequestParam("userId")Integer userId);



}
